﻿
module Sustainalytics.ProductInvolvement {

    export enum PIUploadStatus {
        None = 0,
        UploadInvalid,
        UploadValid,
        AppliedStart,
        AppliedSuccess,
        AppliedFailure,
        Canceled
    }


    export class PIInputHistory {
        public dateTime: Date;
        public status: PIUploadStatus;
        public detail: string;
    }

    export class PIInputFileDto {

        public history: PIInputHistory[];
        public name: string;
        public id: string;

        public getStatus(): PIUploadStatus {
            return history[0].status;
        }
    }
} 